package com.example.forum.services;

import com.example.forum.model.User;

public interface IUserService {
    User selectByUserName(String username);

    void createNormalUser(User user);

    User login(String username,String password);

    User selectById(Long id);

    void addOneArticleCountById(Long id);

    void subOneArticleCountById(Long id);

    void modifyInfo(User user);

    void modifyPassword(Long id,String newPassword,String oldPassword);
}
